FROM nvcr.io/nvidia/pytorch:23.06-py3
# RUN /bin/bash -c "pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple"

# 复制本地的 resolv.conf 文件到容器中
COPY resolv.conf /etc/resolv.conf

# 创建并写入 pip 配置文件
RUN rm -f /root/.pip/pip.conf
RUN mkdir -p /root/.pip && \
    echo "[global]" > /root/.pip/pip.conf && \
    echo "index-url = https://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf && \
    echo "extra-index-url = https://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf && \
    echo "trusted-host = https://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf

RUN /bin/bash -c "pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/"
RUN /bin/bash -c "uname -a"
RUN /bin/bash -c alias python3=python
RUN apt-get update
#RUN pip3 install loguru
#RUN pip3 install pycuda
#RUN pip3 install schedule
#RUN pip3 install munch
